package com.ycc.service.impl;


import com.ycc.mapper.authmapper;
import com.ycc.pojo.authorities;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class authservice {
    @Autowired
    public com.ycc.mapper.authmapper authmapper;

    public void insert(String username) {
        authorities authority = new authorities(username, "ROLE_vip");
        authmapper.insert(authority);
    }
}
